const mongoose = require('mongoose')
const rbSchema = mongoose.Schema({
    "rbId": Number,           //报销单Id
    "upload_id": String,               //报销批次Id
    "state": {
        type: Number,
        default: 0
    },//状态 0-未审核 1-审核中 2-已审核
    "fraud": {
        type: Number,
        default: 0
    },//是否诈骗 0-否 1-是
    "score": {
        type: Number,
        default: 0
    },//诈骗分数
    "level": {
        type: Number,
        default: 0
    },//诈骗等级
    "createTime" : {
        type: Date,
        default: Date.now()
    },//创建时间
    "updateTime" : {
        type: Date,
        default: Date.now()
    },//更新时间
    "APP_AMT": {
        type: Number,
        default: 0
    },
    "MBR_NO": Number,     
    "POHO_NO": Number 
})

module.exports = mongoose.model("rbs", rbSchema, "rbs")//第三个参数是集合名称